#define _CRT_SECURE_NO_WARNINGS

#include"SList.h"

void TestSList1()
{
	SLTNode* a = nullptr;
	a->PushTail(1,a);
	a->PushTail(2,a);
	a->PushTail(3,a);
	a->PushTail(4,a);
	a->PushTail(5,a);
	a->PopBack(a);
	a->PopBack(a);
	a->PopBack(a);
	a->PopBack(a);
	//a->PushFront(5, a);
	//a->PushFront(6, a);
	//a->PushFront(7, a);
	//a->PushFront(8, a);
	//a->PushFront(9, a);
	//a->Insert(20, a->Find(9), a);
	//a->Erase(a, a->Find(9));
	//a->PopFront(a);
	//a->PopFront(a);
	//a->PopFront(a);

	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);
	//a->PopBack(a);

	a->Print();
}


int main()
{
	TestSList1();

	return 0;
}